/*
 ============================================================================
 文件名 	: EasyLogger.inl
 描述		: 用来提供日志功能.
 ============================================================================
 */

/*
 *  用来标示是否开启日志功能
 *  在程序的发布版本里，日志功能应该被关闭
 */
#define USE_FILE_LOGGER 

#ifdef USE_FILE_LOGGER 

#include <flogger.h> 
_LIT(KLogFile,"EasyBounce.log"); 
_LIT(KLogFolder,"EasyBounce"); 

//向日志文件写一条信息
#define EASYLOG(LOGS)	RFileLogger::Write(KLogFolder,KLogFile,EFileLoggingModeAppend,LOGS)

//格式化文本并将其写入日志文件
#define EASYLOGFORMAT(LOGS,ARG)           RFileLogger::WriteFormat(KLogFolder, \
                                                                KLogFile, \
                                                                EFileLoggingModeAppend, \
                                                                (LOGS), \
                                                                (ARG))
//格式化文本并将其写入日志文件
#define EASYLOGFORMAT2(LOGS,ARG1,ARG2)           RFileLogger::WriteFormat(KLogFolder, \
                                                                KLogFile, \
                                                                EFileLoggingModeAppend, \
                                                                (LOGS), \
                                                                (ARG1), \
                                                                (ARG2) )


#endif // USE_FILE_LOGGER 

// 文件结束
